/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dp_map;

import java.util.*;

/**
 *
 * @author Carlos
 */
class Comparador implements Comparator<Objeto>{
    /*
    @Override
    public int compare(Objeto obj1, Objeto obj2) {
        return obj1.cad.compareTo(obj2.cad);
    }
    */
    public int compare(Objeto obj1, Objeto obj2) {
        if (obj1.entero < obj2.entero)
                return -1;
        if (obj1.entero > obj2.entero)
                return 1;
        return 0;

    }
}